//
//  CityChooseDataBase.m
//  itboye2015002
//
//  Created by boye_mac1 on 15/9/15.
//  Copyright (c) 2015年 Boye. All rights reserved.
//

#import "ByCoreAddressSqlite3.h"


#import "ByCoreDataBase.h"



@implementation ByCoreAddressSqlite3

// 获得省份
+ (NSArray *)getAllProvinceModel {
    
    return [ByCoreDataBase queryAllProvinces];
}

// 获得城市
+ (NSArray *)getAllCityModelWithProvinceID:(NSString *)provinceID {
    
    return [ByCoreDataBase queryAllCitysWithProvinceID:provinceID];

}

// 获得地区
+ (NSArray *)getAllAreaModelWithCityID:(NSString *)cityID {
    
    return [ByCoreDataBase queryAllAreasWithCityID:cityID];

}


+ (NSString *)getProvinceID:(NSString *)provinceStr {
    return [ByCoreDataBase getProvinceID:provinceStr];
}
+ (NSString *)getCityID:(NSString *)cityStr provinceID:(NSString *)provinceID {
    return [ByCoreDataBase getCityID:cityStr provinceID:provinceID];
}

@end
